package com.dsteiner.widgets.client.resources;

import com.google.gwt.core.client.GWT;
import com.google.gwt.dom.client.StyleInjector;
import com.google.gwt.resources.client.ClientBundle;
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.CssResource.Import;
import com.google.gwt.resources.client.CssResource.NotStrict;
import com.google.gwt.resources.client.ImageResource.ImageOptions;
import com.google.gwt.resources.client.ImageResource.RepeatStyle;

public interface RoundBorderResources extends ClientBundle {
    
	public static class Util{
		public static RoundBorderResources INSTANCE = GWT.create(RoundBorderResources.class);
		static{
			StyleInjector.injectStylesheet(INSTANCE.css().getText());
			StyleInjector.injectStylesheet(INSTANCE.cssRed().getText());
		}
	}
	
	@NotStrict
	@Source("RoundBorder.css")
	RoundBorderCssResource css();
	
	@NotStrict
	@Source("RoundBorder.css")
	@Import(value = {RoundBorderRedCssResource.class, RoundBorderCssResource.class})
	RoundBorderRedCssResource cssRed();
	
    @Source("b-small.png")
    @ImageOptions(repeatStyle = RepeatStyle.Horizontal)
    ImageResource bottomBorder();
    
    @Source("bl-small.png")
    ImageResource bottomLeftBorder();

    @Source("br-small.png")
    ImageResource bottomRightBorder();

    @Source("l-small.png")
    @ImageOptions(repeatStyle = RepeatStyle.Vertical)
    ImageResource leftBorder();

    @Source("r-small.png")
    @ImageOptions(repeatStyle = RepeatStyle.Vertical)
    ImageResource rightBorder();

    @Source("t-small.png")
    @ImageOptions(repeatStyle = RepeatStyle.Horizontal)
    ImageResource topBorder();

    @Source("tl-small.png")
    ImageResource topLeftBorder();

    @Source("tr-small.png")
    ImageResource topRightBorder();
    
    
    @Source("b-red.png")
    @ImageOptions(repeatStyle = RepeatStyle.Horizontal)
    ImageResource bottomBorderRed();
    
    @Source("bl-red.png")
    ImageResource bottomLeftBorderRed();

    @Source("br-red.png")
    ImageResource bottomRightBorderRed();

    @Source("l-red.png")
    @ImageOptions(repeatStyle = RepeatStyle.Vertical)
    ImageResource leftBorderRed();

    @Source("r-red.png")
    @ImageOptions(repeatStyle = RepeatStyle.Vertical)
    ImageResource rightBorderRed();

    @Source("t-red.png")
    @ImageOptions(repeatStyle = RepeatStyle.Horizontal)
    ImageResource topBorderRed();

    @Source("tl-red.png")
    ImageResource topLeftBorderRed();

    @Source("tr-red.png")
    ImageResource topRightBorderRed();
    
  }